import request from "@/utils/request";


export function getPetList(data) {
    return request({
        url: '/pet/getPet',
        method: 'post',
        data: data
    })
}

export function getPetListAPI() {
    return request({
        url: '/pet/getPetInfo',
        method: 'post',
    })
}

// 编辑宠物信息
export function editPetInfo(data) {
    return request({
        url: '/pet/editPetInfo',
        method: 'post',
        data: data
    })
}

// 新增宠物
export function addPetInfo(data) {
    return request({
        url: '/pet/addPetInfo',
        method: 'post',
        data: data
    })
}

export function addPet(data) {
    return request({
        url: '/pet/addPet',
        method: 'post',
        data: data
    })
}

export function deletePet(data) {
    return request({
        url: '/pet/deletePet',
        method: 'post',
        data: data
    })
}

export function getAllVaccination() {
    return request({
        url: '/pet/getAllVaccination',
        method: 'post',
    })
}

export function getVaccinationRecord() {
    return request({
        url: '/pet/getVaccinationRecord',
        method: 'post',
    })
}

export function addVaccinationRecord(data) {
    return request({
        url: '/pet/addVaccinationRecord',
        method: 'post',
        data: data
    })
}

export function getHealthCheckUpRecords(data) {
    return request({
        url: '/pet/getHealthCheckUpRecords',
        method: 'post',
        data: data
    })
}

export function getHealthReports(userId) {
    return request({
        url: '/api/health-reports',
        method: 'get',
        params: {userId} // 假设需要传递用户 ID
    });
}

export function getPetActivityListAPI() {
    return request({
        url: '/pet/getPetActivityList',
        method: 'post',
    })
}

export function getPetDrinkInfoAPI() {
    return request({
        url: '/pet/getPetDrinkInfo',
        method: 'post',
    })
}

// 添加宠物饮水记录
export function addPetDrink(data) {
    return request({
        url: '/pet/addPetDrink',
        method: 'post',
        data: data
    });
}
// 添加宠物饮水记录
export function addPetActivityAPI(data) {
    return request({
        url: '/pet/addPetActivity',
        method: 'post',
        data: data
    });
}

// 宠物体检表信息接口
export function getTotalInfoById(id) {
    return request({
        url: '/pet/getTotalInfoById',
        method: 'post',
        params: {id: id}
    })
}

export function addAnomalyRecord() {
    return request({
        url: '/pet/addAnomalyRecord',
        method: 'post',
        data: data
    })
}

export function getAnomalyRecord(anomaly) {
    return request({
        url: '/pet/getAnomalyRecord',
        method: 'post',
        params: {anomaly: anomaly}
    })
}

export function getPetHealthExaminationRecordList(petId) {
    return request({
        url: '/pet/getPetHealthExaminationRecordList',
        method: 'post',
        params: {petId: petId}
    })
}

export function addPetDailyInfo(data) {
    return request({
        url: '/pet/addPetDailyInfo',
        method: 'post',
        data: data
    })
}

export function updateVaccinationRecord(data) {
    return request({
        url: '/pet/updateVaccinationRecord',
        method: 'post',
        data: data
    })
}

export function checkPetAbnormalInfo() {
    return request({
        url: '/pet/checkPetAbnormalInfo',
        method: 'post',
    })
}

export function getDocList() {
    return request({
        url: '/pet/getDocList',
        method: 'post',
    })
}

export function addDoctor(data) {
    return request({
        url: '/pet/addDoctor',
        method: 'post',
        data: data
    })
}

export function editDocInfo(data) {
    return request({
        url: '/pet/editDocInfo',
        method: 'post',
        data: data
    })
}

export function updatePetAbormal(data) {
    return request({
        url: '/pet/updatePetAbormal',
        method: 'post',
        data: data
    })
}

export function addPhysicalRecord(data) {
    return request({
        url: '/pet/addPhysicalRecord',
        method: 'post',
        data: data
    })
}

export function addPetHealthExaminationRecord(data) {
    return request({
        url: '/pet/addPetHealthExaminationRecord',
        method: 'post',
        data: data
    })
}

export function editPetImg(data) {
    return request({
        url: '/pet/editPetImg',
        method: 'post',
        data: data
    })
}

export function searchHealthExaminationRecordList(data) {
    return request({
        url: '/pet/searchHealthExaminationRecordList',
        method: 'post',
        data: data
    })
}

export function getPetInfo2(data) {
    return request({
        url: '/pet/getPetInfo2',
        method: 'post',
        data: data
    })
}

export function addPetAbormal(data) {
    return request({
        url: '/pet/addPetAbormal',
        method: 'post',
        data: data
    })
}

export function getPetHealthRecordNumAPI() {
    return request({
        url: '/pet/petDataStatistic',
        method: 'post',
    })
}


export function cleanPetActivityAPI(patId) {
    return request({
        url: '/pet/cleanPetActivity',
        method: 'post',
        params: {
            petId: patId
        }
    })
}


